package com.canaan.business.domain.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;
import com.canaan.common.annotation.TableName;

import java.util.List;

/**
 * WMS 容器对象 wms_container
 *
 * @author ruoyi
 * @date 2023-08-01
 */
@ApiModel(description = "wms_container")
@TableName("wms_container")
public class Container extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 容器编码 */
    @Excel(name = "容器编码")
    @ApiModelProperty("容器编码")
    private String no;
    @Excel(name = "容器类型")
    /** 容器类型（1：料框2托盘） */
    @ApiModelProperty("容器类型")
    private String containerType;

    /** 容器状态（0空闲，1使用中，2作废） */
    @Excel(name = "容器状态")
    @ApiModelProperty("容器状态")
    private String status;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("容器状态")
    private String delFlag;

    /** 排序 */
    @ApiModelProperty("排序")
    private Integer sort;

    /** 关联的条码列表 */
    @ApiModelProperty("关联的条码列表")
    private List<ContainerBarcode> containerBarcodeList;

    public List<ContainerBarcode> getContainerBarcodeList() {
        return containerBarcodeList;
    }

    public void setContainerBarcodeList(List<ContainerBarcode> containerBarcodeList) {
        this.containerBarcodeList = containerBarcodeList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setContainerType(String containerType)
    {
        this.containerType = containerType;
    }

    public String getContainerType()
    {
        return containerType;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("containerType", getContainerType())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }
}
